package Thread_Test;

/**
 * Created by asd73 on 2017/8/17.
 */
class MyThread extends Thread{
    private String tile;
    public MyThread(String title){
        this.tile=title;
    }

    @Override
    public void run() {
        for (int x=0;x<10;x++){
            System.out.println(this.tile+",x="+x);
        }
    }
}
public class Thead1_test {
    public static void main(String[] args){
        MyThread mt1 = new MyThread("线程A");
        MyThread mt2 = new MyThread("线程B");
        MyThread mt3 = new MyThread("线程C");
        new Thread(mt1).start();
        new Thread(mt2).start();
        new Thread(mt3).start();

    }


}
